<div ng-include="sys_html('common/_header')"></div>
<style>
.headinfo {
    background: none;
}
.headinfo .mod-member {
    margin: 0 auto;
	margin-top: -60px;
    width: 94%;
	left:3%;
    padding: 6px 0 10px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.headinfo .mod-member .sign-btn{
    position: absolute;
    margin: 0 auto;
	top: -44px;
    width: 36px;
	height: 26px;
	right:16px;
    color:#fff;
	text-align:center;
	padding-top:3px;
    background: #7c1cc9;
}
.bottombg {bottom:-20px;width:100%;height:80px;border-bottom-right-radius:100% 40px;border-bottom-left-radius:100% 40px;}
.mod-group {
    margin: 0 auto;
	margin-top: 5px;
    width: 94%;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #f2f2f2;
}
.fui-icon-group .fui-icon-col-sm {
    margin:10px 0;
}
.badge {
    left: 2rem;
    top: 0;
}
.fui-icon-group .fui-icon-col-sm.border {
	border: 1px solid #18bc9c;
}
.fui-cellone-icon{color:#18bc9c;padding-right:0.5rem;line-height:1.5}
.fui-icon-group .fui-icon-col-sm .icon{font-size:1.5rem;}
</style>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
	<div class='fui-content member-page'>
		<div class="bottombg" style="background:{{main.syscolor || '#7c1cc9'}};"></div>
		<div class="headinfo" style="height:auto;">		
				<div class="mod-member">
					<div class="sign-btn" href="javascript:;" ng-click="access_json('core/member.qiandao/')" style="background:{{main.syscolor || '#7c1cc9'}};">签到</div>
						<div class="headinfo" style="background:none;padding:0;color:#999">
												<div class="child userinfo" style="padding-bottom:5px;color:#999;width:4rem">
													<div class="face" style="margin-right:0.6rem;padding: 0.1rem;" href="javascript:;" ng-click="access_json('core/member.cavatar/')">
															<img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" />
															<span class="vip" style="top: 2rem;background: {{main.syscolor || '#4491F1'}} none repeat scroll 0 0;"><i class="icon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem"></i></span>
													</div>
												</div>
												<div class="child userinfo" style="padding-bottom:0;color:#999;flex: 1;text-align:left;">
													<div class="l bold" style="width:100%">{{pagedata.item.nickname}} </div>
													<div class="l">
														<div style="width:100%;font-size:12px" href="javascript:;" ng-click="access_json('core/member.set/')">MID:{{pagedata.item.mid}} 手机: {{pagedata.item.mobile}} <span style="color:{{main.syscolor || '#4491F1'}}">设置</span></div>
														<div style="font-size:12px">
														<span class="red" ng-if="pagedata.sale_luck.title" href="javascript:;" ng-click="access_json('jy_weishop/member.luck/')">[{{pagedata.sale_luck.title}}] (享受{{pagedata.sale_luck.discount}}折)</span>
														</div>
													</div>
												</div>
									
						</div>
						<div class="fui-icon-group noborder  col-4">
												<div class="fui-icon-col-sm external" style="margin:0" href="javascript:;" ng-click="access_json('jy_nongfee/daicard/')">
													<div>
														<div class="text bold">{{pagedata.item.baofee || '0.00'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">{{pagedata.pluginset.db_title}} <span href="javascript:;" ng-click="pagedata.showzhuan=true" style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
													</div>
												</div>
												<div ng-repeat="(key,item) in pagedata.credit_types" ng-if="key!=2" class="fui-icon-col-sm external" style="margin:0">
													<div ng-click="access_json('jy_nongfee/member.xunibi//type='+key)">
														<div class="text bold">{{item.fee || '0.00'}}</div>
														<div class="subtitle" style="font-size:12px;color: #666;">{{item.title}} <span style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
													</div>
												</div>
						</div>
					</div>
				</div>
				<div ng-if="pagedata.setting.no_order!=1" class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_weishop/order.list/')">
								<div class="fui-cell-icon"><i class="icon icon-quanbudingdan"></i></div>
								<div class="fui-cell-text">我的订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
							</a>
							<div class="fui-icon-group col-5 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/order.list//status=0')">
									<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">待付款</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/order.list//status=1')">
									<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待发货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/order.list//status=2')">
									<div class="badge" ng-if="pagedata.statics.status2>0">{{pagedata.statics.status2}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">待收货</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/order.list//status=3')">
									<div class="badge" ng-if="pagedata.statics.status3>0">{{pagedata.statics.status3}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">待评价</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('jy_weishop/order.list//status=3')">
									<div class="badge" ng-if="pagedata.statics.status4>0">{{pagedata.statics.status4}}</div>
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">退换货</div>
								</a>
							</div>
				</div>
				<div class="mod-group" style="padding:0.3rem 0.3rem 0 0.3rem">
				<div class="fui-icon-group new noborder col-2" style="background:#fff;">
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/feecard/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-dixiaofei"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.credit2 ||'0.00'}}</div>
							<div class="gray" style="font-size:0.7rem">我的余额</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0"  href="javascript:;" ng-click="access_json('jy_nongfee/sifang/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-jifen1"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.sffee || '0.00'}}个</div>
							<div class="gray" style="font-size:0.7rem">我的释放值</div>
						</div>
						</div>
					</div>
				</div>
				</div>
				<div class="mod-group" style="padding:0.3rem 0.3rem 0 0.3rem">
				<div class="fui-icon-group new noborder col-2" style="background:#fff;">
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/quanlog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-youhuiquan"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.zquan || '0'}}张</div>
							<div class="gray" style="font-size:0.7rem">我的种植券</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/baolog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-gifts"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.isbaonum || '0'}}次</div>
							<div class="gray" style="font-size:0.7rem">加倍包记录</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/ailog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-clock"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.isainum || '0'}}次</div>
							<div class="gray" style="font-size:0.7rem">机器人记录</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/yuelog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-yuyue"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.isyuenum || '0'}}次</div>
							<div class="gray" style="font-size:0.7rem">预约种植记录</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/feelog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-jifen1"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.isfeenum || '0'}}次</div>
							<div class="gray" style="font-size:0.7rem">流水日志</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/canlog/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-dingdan"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">{{pagedata.item.iscannum || '0'}}次</div>
							<div class="gray" style="font-size:0.7rem">参与日志</div>
						</div>
						</div>
					</div>
				</div>
				</div>
				<div class="mod-group" style="padding:0.3rem 0.3rem 0 0.3rem">
				<div class="fui-icon-group new noborder col-2" style="background:#fff;">
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/team.index/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-paihao0"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">产生{{pagedata.item.teamfee ||'0.00'}}</div>
							<div class="gray" style="font-size:0.7rem">我的团队</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/area.index/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-laike_quan"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">产生{{pagedata.item.areafee || '0.00'}}</div>
							<div class="gray" style="font-size:0.7rem">区域代理</div>
						</div>
						</div>
					</div>
					<div class="fui-icon-col-sm border" style="margin-top:0">
						<div class="fui-cellone" style="padding:0" href="javascript:;" ng-click="access_json('jy_nongfee/getapp/')">
						<div class="fui-cellone-icon r" style="width:40%"><i class="icon icon-icondownload"></i></div>
						<div class="fui-cellone-text l">
							<div class="title bold">分享下载</div>
							<div class="gray" style="font-size:0.7rem">APP下载</div>
						</div>
						</div>
					</div>
				</div>
				</div>
						<div  ng-if="pagedata.setting.no_logs!=1" class="fui-cell-group fui-cell-click mod-group">
								<a class="fui-cell" href="javascript:;" ng-click="access_json('jy_nongfee/feelog/')">
											<div class="fui-cell-icon"><i class="icon icon-pingjia1"></i></div>
											<div class="fui-cell-text">
												信息记录
											</div>
											<div class="fui-cell-remark"></div>
								</a>
								<div class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.setting.my_logs" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
								</div>
						</div>
						
						
						<div ng-if="pagedata.setting.no_days!=1" class="fui-cell-group fui-cell-click mod-group">
										<a class="fui-cell" href="javascript:;">
											<div class="fui-cell-icon"><i class="icon icon-set"></i></div>
											<div class="fui-cell-text">
												我的日常
												</div>
											<div class="fui-cell-remark" href="javascript:;" ng-click="access_json('jy_weishop/coupon.myindex/')"></div>
										</a>
										<div class="fui-icon-group col-4 selecter">
											<a ng-repeat="item in pagedata.setting.my_days" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(item.action)">
												<div class="icon icon-green radius"><i class="icon {{item.icon}}"></i></div>
												<div class="text">{{item.title}}</div>
											</a>
										</div>
						</div>
						<div ng-if="pagedata.setting.no_others!=1" class="fui-cell-group fui-cell-click mod-group">
							<a ng-repeat="item in pagedata.setting.my_memberbtn" class="fui-cell" href="javascript:;" ng-click="access_json(item.action)">
									<div class="fui-cell-icon"><i class="icon {{item.icon}}"></i></div>
									<div class="fui-cell-text"><p>{{item.title}}</p></div>
									<div class="fui-cell-remark"></div>
							</a>
						</div>
						<div class="fui-cell-group fui-cell-click" style="background:none">
							<a class="fui-cell external changepwd" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
								<div class="fui-cell-text" style="text-align: center;">修改密码</div>
							</a>
							<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
								<div class="fui-cell-text" style="text-align: center;">退出登录</div>
							</a>
						</div>
				<div ng-include="sys_html('common/_copyright',true)"></div>
	</div>
</div>
<div id="show_vipcard"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="top:30%;">
			<div class="memlogo-area" style="background:url({{tomedia(pagedata.item.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
                    <div class="memlogo">
                        <img ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}">
                    </div>
                    <div class="name">{{pagedata.item.nickname || '匿名'}}</div>
                    <br>
                    <div class="name">{{pagedata.item.mobile || '无手机号'}}</div>
                    <div class="code">
                        <img ng-src="{{tomedia(pagedata.account.logo) || '../core/resource/images/wxappicon.png'}}">
                    </div>
                    <div class="bot">
						<img id="barcode" style="height:2.5rem"/>
                        <span class="r-f">{{pagedata.item.level}}</span>
                    </div>
            </div>
		</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在提现到余额的操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="提现倍财金金额" ng-model="pagedata.post.fee"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'/member.index/tixian/')">确认提现</a>
			</div>
		</div>
	</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='buyjiqi'">
<div class="fui-content">
		<div class="fui-picture">
				<a style="display: block;" data-nocache="true">
					<img ng-src="{{tomedia(pagedata.vipbg) ||'../core/resource/images/nopic.jpg'}}">
				</a>
		</div>
		<div class="fui-cell-group fui-cell-click" style="padding-bottom:0.3rem">
			<div class="fui-cell sm">
				<div class="fui-cell-label" style='width:auto' >开通时长</div>
				<div ng-if="pagedata.jiqi_buynian==1" class="fui-cell-mask noremark" style="margin-right:10px">
					 <div class="fui-number">
						<div class="minus" ng-click="pagedata.minus()">-</div>
						<input class="num" type="tel" name="" value="{{pagedata.post.num}}" readonly="readonly"/>
						<div class="plus" ng-click="pagedata.plus()">+</div>
					</div>
				</div>
				<div class="fui-cell-text">{{pagedata.jiqi_buynian==1?'年':'永久'}}</div>
			</div>
			<div class="fui-cell sm">
				<div class="fui-cell-label" style='width:auto' >费用合计：</div>
				<div class="fui-cell-text bold" style="color:red"> ￥{{pagedata.fee || '0.00'}}</div>
			</div>
			</div>
		<div class="weui_cells_checkbox" style="margin-top:2rem">
                <div class="fui-cell-label" style="text-align:center;margin:0 auto;padding:0.2rem">
                    <input type="checkbox" class="fui fui-checkbox fui-checkbox-danger verify-checkbox" style="line-height:0.6rem" ng-checked="pagedata.post.checked==true" ng-model="pagedata.post.checked">
					我已阅读并同意《<a onclick="$('#showsystemcontent').modal();" style="color:f60">开通协议</a>》
                </div>
        </div>
		<div class="weui_btn_area" style="margin-top:0">
			 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="pagedata.buyjiqi();">提交</a>
		</div>
</div>
<div id="showsystemcontent" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:96%;left:2%;top:1.5%;">
<div class="modal-content" style="min-height:500px">
	<div aria-hidden="true" data-dismiss="modal" class="closebtn" style="right:10px;top:0"><i class="icon jinyunicon icon-wrong" style="color:#ccc;"></i></div>
	<div class="fui-article-page">
			<div class="fui-article-title" style="text-align:center">平台声明</div>
			<div class="fui-article-content" ng-bind-html="trust(pagedata.jiqixieyi.content)"></div>
	</div>
</div>
</div>
</div>
<script type="text/javascript">
//减少
scope.pagedata.minus=function(type){
	if(scope.pagedata.post.num <=1){
		return false;
	}
	scope.pagedata.post.num--;
	scope.pagedata.jisuan(type,scope.pagedata.post.num);
	return
}
//增加
scope.pagedata.plus=function(type){
	scope.pagedata.post.num++;
	scope.pagedata.jisuan(type,scope.pagedata.post.num);
	return
}
//选择付款类型
scope.pagedata.type=function(type){
	scope.pagedata.post.num=1
	scope.pagedata.post.paytype = type;
	scope.pagedata.jisuan(type,scope.pagedata.post.num);
	return
}
//计算
scope.pagedata.jisuan=function(type,num){
	scope.pagedata.fee = getprice(scope.pagedata.pluginset.jiqi_fee * num)
	scope.$evalAsync();
}
function getprice(num)
{
	//var num = parseFloat(num);
	num = num.toFixed(2);
	//console.log(num);
	return num
	
}
</script>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_sales','','','jy_weishop')"></div>
<script>
require(['JsBarcode'],function(JsBarcode){
	//console.log('准备调用');
	JsBarcode('#barcode',scope.pagedata.item.id,{fontSize:36});
});
</script>